import { request } from '@/utils/request'

// 消息中心类型及条数
export function msgAmount(param) {
  return request({
    url: '/msgCenter/msgAmount',
    method: 'post',
    data: param,
	showLoading:1,
  })
}

// 消息查询
export function msgList(param) {
  return request({
    url: '/msgCenter/msgList',
    method: 'post',
    data: param,
	showLoading:1,
  })
}

// 消息标识已读
export function msgRead(param) {
  return request({
    url: '/msgCenter/read',
    method: 'post',
    data: param,
  })
}

// 消息状态查询
export function msgState(param) {
  return request({
    url: '/msgCenter/search',
    method: 'post',
    data: param,
  })
}

// 消息详情信息
export function msgDetail(param) {
  return request({
    url: '/msgCenter/detail',
    method: 'post',
    data: param,
  })
}

// 信使消息查询
export function sendList(param) {
  return request({
    url: '/messenger/sendList',
    method: 'post',
    data: param,
  })
}

// 新增信使消息保存
export function addSend(param) {
  return request({
    url: '/messenger/addSend',
    method: 'post',
    data: param,
  })
}

// 编辑更新信使消息保存
export function updateSend(param) {
  return request({
    url: '/messenger/updateSend',
    method: 'post',
    data: param,
  })
}

// 获取信息详情信息
export function sendDetail(param) {
  return request({
    url: '/messenger/sendDetail',
    method: 'post',
    data: param,
  })
}

// 删除信息信息
export function deleteSend(param) {
  return request({
    url: '/messenger/deleteSend',
    method: 'post',
    data: param,
  })
}

// 发送信息信息
export function send(param) {
  return request({
    url: '/messenger/send',
    method: 'post',
    data: param,
  })
}

// 头部消息查询
export function homeMsgList(param) {
  return request({
    url: 'msgCenter/homeMsgList',
    method: 'post',
    data: param,
  })
}

// 工作计划请求
export function workList(param) {
  return request({
    url: '/func/personalWpFuncs',
    method: 'get',
    data: param,
  })
}